package com.love.marriage.userCallRetrieval.mapper;

import com.love.marriage.userCallRetrieval.entity.UserCallRetrieval;
import com.love.marriage.userCallRetrieval.vo.UserCallRetrievalVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.love.marriage.common.interfaces.permission.DataPermission;

/**
 * description:  用户获取电话次数记录表 mapper
 * author:       mybatisPlus
 * createDate:   2025-01-17 19:28:01
 * version:      1.0.0
 */
@Mapper
public interface UserCallRetrievalMapper extends BaseMapper<UserCallRetrieval> {

    @DataPermission(table = "user_call_retrieval_t")
    Page<UserCallRetrievalVo> getPage(Page<UserCallRetrievalVo> page, @Param("userCallRetrievalVo") UserCallRetrievalVo userCallRetrievalVo);

    UserCallRetrievalVo queryUserCallRetrieval(@Param("id") Long id);

    UserCallRetrievalVo queryUserCallRetrievalByUerId(@Param("userId") Long userId);
}
